package com.tansun.easycare.rule.rulelog.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tansun.easycare.rule.common.RuleBaseController;
import com.tansun.easycare.rule.rulelog.entity.RuleLogDetails;
import com.tansun.easycare.rule.rulelog.service.RuleLogDetailsService;

@Controller
@RequestMapping(value = "/ruleProj/details")
public class RuleLogDetailsController extends RuleBaseController{
	
	@Autowired
	private RuleLogDetailsService ruleLogDetailsService;
	
	/*返回页面的柱状图数据*/
	@RequestMapping("echarsDataColumn")
	public @ResponseBody List<RuleLogDetails> echarsDataPie(HttpServletRequest request, HttpServletResponse response,
			RuleLogDetails ruleLogDetails) throws Exception{
        List<RuleLogDetails> list = this.ruleLogDetailsService.findListColumn(ruleLogDetails);
		return list;
	}
}
